package org.example.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UserUpdatePwdParam {
    @NotNull(message = "数据异常,请重新登录后重试!!!")
    private Long id;

    @NotBlank(message = "密码不能为空")
    private String oldPassword;

    @NotBlank(message = "密码不能为空")
    @Length(min = 6,max = 18,message = "密码长度为6到18位")
    private String newPassword;
}
